package com.example.demo.many2many;


import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = Many2ManyQueueConfig.queueName)
public class ManyReceive1 {

    @RabbitHandler
    public  void receive( ManyModle manyModle){
        System.out.println("ManyReceive1:"+manyModle.getAge()+":"+System.currentTimeMillis());
    }
}
